[INFO] cloning repository https://github.com/sharifme04/optim-solver
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sharifme04/optim-solver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsharifme04%2Foptim-solver", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsharifme04%2Foptim-solver'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1c3e2139be52b1d3f5245e9bb26dd4cef6d56967
[INFO] checking sharifme04/optim-solver against master#029c9e18dd1f4668e1d42bb187c1c263dfe20093 for pr-157562
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsharifme04%2Foptim-solver" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/sharifme04/optim-solver
[INFO] finished tweaking git repo https://github.com/sharifme04/optim-solver
[INFO] tweaked toml for git repo https://github.com/sharifme04/optim-solver written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/sharifme04/optim-solver on toolchain 029c9e18dd1f4668e1d42bb187c1c263dfe20093
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/sharifme04/optim-solver already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 31440f64a85a0e5030104a96820f5fb4a4cebf6ab968bd2deced68d33e269a0d
[INFO] running `Command { std: "docker" "start" "31440f64a85a0e5030104a96820f5fb4a4cebf6ab968bd2deced68d33e269a0d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "31440f64a85a0e5030104a96820f5fb4a4cebf6ab968bd2deced68d33e269a0d" "/opt/rustwide/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "31440f64a85a0e5030104a96820f5fb4a4cebf6ab968bd2deced68d33e269a0d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "31440f64a85a0e5030104a96820f5fb4a4cebf6ab968bd2deced68d33e269a0d" "/opt/rustwide/cargo-home/bin/cargo" "+029c9e18dd1f4668e1d42bb187c1c263dfe20093" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.185
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking zerocopy v0.8.48
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.6
[INFO] [stderr]     Checking rand_distr v0.4.3
[INFO] [stderr]     Checking optim-solver v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `gnorm`
[INFO] [stdout]   --> src/optimisers.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::<f64>().sqrt();
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gnorm`
[INFO] [stdout]    --> src/optimisers.rs:127:9
[INFO] [stdout]     |
[INFO] [stdout] 127 |     let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::<f64>().sqrt();
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gnorm`
[INFO] [stdout]    --> src/optimisers.rs:178:9
[INFO] [stdout]     |
[INFO] [stdout] 178 |     let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::<f64>().sqrt();
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gnorm`
[INFO] [stdout]    --> src/optimisers.rs:215:9
[INFO] [stdout]     |
[INFO] [stdout] 215 |     let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::<f64>().sqrt();
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Matrix` is never constructed
[INFO] [stdout]  --> src/matrix.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Matrix {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/matrix.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Matrix {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 12 |     pub fn zeros(rows: usize, cols: usize) -> Self {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     pub fn from_vec(rows: usize, cols: usize, data: Vec<f64>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub fn get(&self, r: usize, c: usize) -> f64 {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn set(&mut self, r: usize, c: usize, v: f64) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn add(&mut self, r: usize, c: usize, v: f64) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn matvec(&self, x: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn transpose(&self) -> Matrix {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub fn matmul_at_b(a: &Matrix, b: &Matrix) -> Matrix {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `dot` is never used
[INFO] [stdout]   --> src/matrix.rs:81:8
[INFO] [stdout]    |
[INFO] [stdout] 81 | pub fn dot(a: &[f64], b: &[f64]) -> f64 {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `norm` is never used
[INFO] [stdout]   --> src/matrix.rs:85:8
[INFO] [stdout]    |
[INFO] [stdout] 85 | pub fn norm(v: &[f64]) -> f64 {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `axpy` is never used
[INFO] [stdout]   --> src/matrix.rs:89:8
[INFO] [stdout]    |
[INFO] [stdout] 89 | pub fn axpy(alpha: f64, x: &[f64], y: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `scale` is never used
[INFO] [stdout]   --> src/matrix.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub fn scale(alpha: f64, x: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sub` is never used
[INFO] [stdout]   --> src/matrix.rs:97:8
[INFO] [stdout]    |
[INFO] [stdout] 97 | pub fn sub(a: &[f64], b: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `exact_solution` is never used
[INFO] [stdout]   --> src/functions.rs:63:12
[INFO] [stdout]    |
[INFO] [stdout] 35 | impl Quadratic {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub fn exact_solution(&self) -> Vec<f64> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mse_loss` is never used
[INFO] [stdout]   --> src/functions.rs:74:8
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub fn mse_loss(w: f64, xs: &[f64], ys: &[f64]) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mse_grad` is never used
[INFO] [stdout]   --> src/functions.rs:81:8
[INFO] [stdout]    |
[INFO] [stdout] 81 | pub fn mse_grad(w: f64, xs: &[f64], ys: &[f64]) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `x` is never read
[INFO] [stdout]  --> src/optimisers.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct OptResult {
[INFO] [stdout]   |            --------- field in this struct
[INFO] [stdout] 9 |     pub x: Vec<f64>,
[INFO] [stdout]   |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `name` is never used
[INFO] [stdout]   --> src/neural_net.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl Activation {
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn name(&self) -> &str {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gnorm`
[INFO] [stdout]   --> src/optimisers.rs:71:9
[INFO] [stdout]    |
[INFO] [stdout] 71 |     let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::<f64>().sqrt();
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gnorm`
[INFO] [stdout]    --> src/optimisers.rs:127:9
[INFO] [stdout]     |
[INFO] [stdout] 127 |     let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::<f64>().sqrt();
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gnorm`
[INFO] [stdout]    --> src/optimisers.rs:178:9
[INFO] [stdout]     |
[INFO] [stdout] 178 |     let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::<f64>().sqrt();
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gnorm`
[INFO] [stdout]    --> src/optimisers.rs:215:9
[INFO] [stdout]     |
[INFO] [stdout] 215 |     let gnorm: f64 = grad(&x).iter().map(|gi| gi * gi).sum::<f64>().sqrt();
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gnorm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Matrix` is never constructed
[INFO] [stdout]  --> src/matrix.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct Matrix {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/matrix.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Matrix {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 12 |     pub fn zeros(rows: usize, cols: usize) -> Self {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 16 |     pub fn from_vec(rows: usize, cols: usize, data: Vec<f64>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     pub fn get(&self, r: usize, c: usize) -> f64 {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     pub fn set(&mut self, r: usize, c: usize, v: f64) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn add(&mut self, r: usize, c: usize, v: f64) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn matvec(&self, x: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn transpose(&self) -> Matrix {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub fn matmul_at_b(a: &Matrix, b: &Matrix) -> Matrix {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `dot` is never used
[INFO] [stdout]   --> src/matrix.rs:81:8
[INFO] [stdout]    |
[INFO] [stdout] 81 | pub fn dot(a: &[f64], b: &[f64]) -> f64 {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `norm` is never used
[INFO] [stdout]   --> src/matrix.rs:85:8
[INFO] [stdout]    |
[INFO] [stdout] 85 | pub fn norm(v: &[f64]) -> f64 {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `axpy` is never used
[INFO] [stdout]   --> src/matrix.rs:89:8
[INFO] [stdout]    |
[INFO] [stdout] 89 | pub fn axpy(alpha: f64, x: &[f64], y: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `scale` is never used
[INFO] [stdout]   --> src/matrix.rs:93:8
[INFO] [stdout]    |
[INFO] [stdout] 93 | pub fn scale(alpha: f64, x: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sub` is never used
[INFO] [stdout]   --> src/matrix.rs:97:8
[INFO] [stdout]    |
[INFO] [stdout] 97 | pub fn sub(a: &[f64], b: &[f64]) -> Vec<f64> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `exact_solution` is never used
[INFO] [stdout]   --> src/functions.rs:63:12
[INFO] [stdout]    |
[INFO] [stdout] 35 | impl Quadratic {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 63 |     pub fn exact_solution(&self) -> Vec<f64> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mse_loss` is never used
[INFO] [stdout]   --> src/functions.rs:74:8
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub fn mse_loss(w: f64, xs: &[f64], ys: &[f64]) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `mse_grad` is never used
[INFO] [stdout]   --> src/functions.rs:81:8
[INFO] [stdout]    |
[INFO] [stdout] 81 | pub fn mse_grad(w: f64, xs: &[f64], ys: &[f64]) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `x` is never read
[INFO] [stdout]  --> src/optimisers.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub struct OptResult {
[INFO] [stdout]   |            --------- field in this struct
[INFO] [stdout] 9 |     pub x: Vec<f64>,
[INFO] [stdout]   |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `name` is never used
[INFO] [stdout]   --> src/neural_net.rs:43:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl Activation {
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn name(&self) -> &str {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.48s
[INFO] running `Command { std: "docker" "inspect" "31440f64a85a0e5030104a96820f5fb4a4cebf6ab968bd2deced68d33e269a0d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "31440f64a85a0e5030104a96820f5fb4a4cebf6ab968bd2deced68d33e269a0d", kill_on_drop: false }`
[INFO] [stdout] 31440f64a85a0e5030104a96820f5fb4a4cebf6ab968bd2deced68d33e269a0d
